<div class="infobox-s-<?= $data->status;?>" >

	<div class="info-block" >
		<a class="ava" href="/user/<?= $data->owner->id;?>" ><? $this->widget('ext.gravatar.Gravatar', array("size"=>25, 'email' => $data->owner->email)); ?></a>
		<a class="title"  title="<?= $data->title;?>" href="/suggest/<?= $data->id?>">
            <?= YText::characterLimiter($data->title, 50);?>
        </a>
		<div class="clear"></div>
		<div class="info-data">
			<span class="status-<?= $data->status;?>">
				<?= $data->getStatusName();?>
			</span>
			<span class="align-right">
                <?= Yii::t("lan","{n} просмотр|{n} просмотра|{n} просмотров",$data->count_view);?> ::
				<?= DateTimer::getPeriod($data->t_create);?>

			</span>
			<span class="align-left">
				<?= $data->owner->getIconOnline();?>
				<?= CHtml::link($data->owner->username, "/user/" . $data->owner->id);?>
				&nbsp;|&nbsp;
				<a href="/suggest/<?= $data->id?>#comment">
					<?= $data->cont_comments > 0 ? Yii::t('app', "{n} просьба|{n} просьбы|{n} просьб", $data->cont_comments)
						: "Нет просьб";?>
				</a>
				&nbsp;|&nbsp;
				Теги:
				<?  $i = 1; foreach ($data->tags as $tag) { ?>
				<?= CHtml::link($tag->name, "/suggest/list?filter=" . $tag->name) ?><?= count($data->tags) > $i ? ", " : ""
				; ?>

				<? $i++;
			}?>
			</span>
			<div class="clearfix"></div>
		</div>
		<div class="clearfix"></div>
	</div>

	<? if (Y::user()->isModerator()) { ?>
	<div class="buttons tiptip actionDiv">
		<a title="Удалить" class="button left" href="/suggest/delete/<?= $data->id;?>" onclick="return confirm('Вы уверенны в том что собераетесь сделать?')">
			<span class="icon icon186"></span>
		</a>
	</div>
	<? } ?>
	<div class="clearfix"></div>
</div>
